package com.qi.spzx.product.mapper;

import com.qi.spzx.model.entity.product.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description TODO
 * @Author dingchunlin
 * @Date 2024/2/25 17:14
 * @Version 1.0.0
 */
@Mapper
public interface CategoryMapper {

    List<Category> findOneCategory();

    @Select("select * from category where status = 1 and is_deleted = 1 order by order_num;")
    List<Category> selectAll();
    
}
